
let initState = () => ({
  list: [],
});

export default {
  namespace: 'letter',
  state: { ...initState() },
  effects: {
    // 查看全部信件列表
    *getLetterAll({ payload }, { call, put }) {
     
    },
    // 全部已读
    *letterUnread({ payload }, { call, put }) {
      
    },
    // 站内信详情
    *letterDetails({ payload }, { call, put }) {
      
    },
  },
  reducers: {
    setState(state, action) {
      return { ...state, ...action.payload };
    },
    init(state, action) {
      return { ...initState(), ...action.payload };
    },
  },
};
